﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Logistics.Model;
using Volo.Abp.Domain.Repositories;

namespace Logistics.SignIn
{
    public interface ISignInRepository
    {
        /// <summary>
        /// 登录接口
        /// </summary>
        /// <param name="accountNumber">用户名</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        Task<Operator> SignInAsync(string accountNumber, string password);

        /// <summary>
        /// 添加登录日志
        /// </summary>
        /// <param name="log"></param>
        void LoginLog(UserLog log);

        /// <summary>
        /// 验证账号是否存在
        /// </summary>
        /// <param name="accountNumber"></param>
        /// <returns></returns>
        Task<int> VerifyAccountNumber(string accountNumber);


        /// <summary>
        /// 发送邮件
        /// </summary>
        /// <param name="mailbox"></param>
        void SendMailbox(string mailbox);

        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="accountNumber"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        Task<int> PutChangePassword(string accountNumber, string password);

    }
}